package com.tm.media.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @Author Ly
 * @Data 2023/2/23 18:45
 * @ClassName ChannelEntity
 */
@Data
@TableName("ad_channel")
public class ChannelEntity {
    @TableId(type = IdType.AUTO)
    private Integer	id;
    private  String	name;
    private String	description;
    private  Integer	isDefault;
    private  Integer	status;
    private  Integer	ord;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDateTime createdTime;

}
